package cn.slt.mapper;

import java.util.List;
import java.util.Map;

import cn.slt.domian.Category;

public interface CategoryMapper {
	List<Category> queryCategoryList(Map<String ,String> map);
	List<Category> getfirstlev();
	List<Category> getsecondlev(String firstcode);
	List<Category> queryZtree();
	Category getone(Category category);
	List<Category> queryFirstLevel();

	List<Category> querySecondLevel(String firCode);

	List<Category> isExistFirst(String firName);
	
	List<Category> isExistSecond(Map<String, String> map);
	
	List<Category> isExistThird(Map<String, String> map);
	
	String queryMaxfirCode();
	
	String queryMaxSecCode(String firCode);
	
	String queryMaxThiCode(Map<String, String> map);

	boolean addBatch(List<Category> li);

	boolean delFirst(String firCode);

	boolean delSecond(Map<String, String> map);

	boolean delThird(Map<String, String> map);
	
}
